package com.rnkrsoft.suyan.config.server.services.param.domains;

import com.rnkrsoft.suyan.config.internal.enums.YesOrNo;
import com.rnkrsoft.suyan.config.protocol.v2.DataTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.doc.annotation.ApidocElement;
import java.io.Serializable;

/**
 * Created by woate on 2019/5/19.
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ListParamRecord implements Serializable{
    @ApidocElement(value = "参数名")
    String paramName;
    @ApidocElement(value = "参数值")
    String paramValue;
    @ApidocElement(value = "数据类型", enumClass = DataTypeEnum.class)
    Integer paramDataType;
    @ApidocElement(value = "版本号")
    Integer paramVersion;
    @ApidocElement(value = "是否动态参数", enumClass = YesOrNo.class, defaults = "1")
    String paramDynamic;
    @ApidocElement(value = "是否加密参数", enumClass = YesOrNo.class, defaults = "1")
    String paramEncrypt;
    @ApidocElement("参数描述")
    String paramDesc;
}
